package model;

import java.util.Date;

public class Claim {
    private int id;             // 认领ID
    private int itemId;         // 物品ID
    private String userId;      // 申请人账号
    private Date applyTime;     // 申请时间
    private String status;      // 状态：pending（待审核）/approved（通过）/rejected（拒绝）

    // 构造方法
    public Claim(int id, int itemId, String userId, Date applyTime) {
        this.id = id;
        this.itemId = itemId;
        this.userId = userId;
        this.applyTime = applyTime;
        this.status = "pending"; // 默认待审核
    }

    // Getter和Setter
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }

    public int getItemId() { return itemId; }
    public void setItemId(int itemId) { this.itemId = itemId; }

    public String getUserId() { return userId; }
    public void setUserId(String userId) { this.userId = userId; }

    public Date getApplyTime() { return applyTime; }
    public void setApplyTime(Date applyTime) { this.applyTime = applyTime; }

    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }
}